package day03;

public class NewDemo {
    public static void main(String[] args) {
        int a=8,b=5;
        int max;
        if(a>b){
            max = a;
        }else{
            max = b;
        }
        System.out.println("max="+max);
        int year = 2000; //年份  //带数(2021,2020,2000)
        if((year%4==0 && year%100!=0) || year%400==0){
            System.out.println(year+"是闰年");
        }else{
            System.out.println(year+"是平年");
        }
        int score = 95;
         //带数(888,-56,95,85,65,45)
        if(score<0 || score>100){
            System.out.println("成绩不合法");
        }else if(score>=90){ //合法
            System.out.println("A-优秀");
        }else if(score>=80){
            System.out.println("B-良好");
        }else if(score>=60){
            System.out.println("C-中等");
        }else{
            System.out.println("D-不及格");
        }
    }
}
